#include "StdAfx.h"
#include "RejectionMessage.h"


RejectionMessage::RejectionMessage(GalconClientPtr galconClient, const std::string& msg)
   : m_galconClient(galconClient)
   , m_descrMessage(msg)
{
}


RejectionMessage::~RejectionMessage(void)
{
}

void RejectionMessage::do_execute()
{
   m_galconClient->Disconnect();
   QString message = QString::fromStdString(m_descrMessage);
   QMessageBox::information(QApplication::activeWindow(), "Rejection Message", message, QMessageBox::Ok);
}